const express = require("express");
const morgan = require("morgan")
const app = express();
const doctorRouter = require("./routes/doctorRouter")

app.use(morgan("dev"))
app.use("/api",doctorRouter)
app.use(express.urlencoded({extended:true}));
app.use(express.json());
app.use(express.static(__dirname+"/public"));
app.set("port",8000)
app.listen(app.get("port"),()=>{
    console.log(`http://127.0.0.1:${app.get("port")}`)
})